Skip to content

Add llhttp gem#1031

Merged
github-actions[bot] merged 1 commit intoruby:mainfrom
hakanensari:add-llhttp
Apr 19, 2026
Merged

Add llhttp gem#1031
github-actions[bot] merged 1 commit intoruby:mainfrom
hakanensari:add-llhttp

Conversation

@hakanensari
Copy link
Copy Markdown
Contributor

Summary

  • Adds minimal RBS stubs for the llhttp gem at gems/llhttp/0.6/.
  • Sibling to Add llhttp-ffi gem #1030 (llhttp-ffi): the http gem 6.x's gemspec runtime-depends on llhttp (~> 0.6.1), not llhttp-ffi, so most consumers of http's RBS need this one to satisfy Cannot find type \LLHttp::Delegate`errors raised fromgems/http/.../sig/http.rbs`.
  • The two gems expose an identical public LLHttp namespace, so the stub here is verbatim what was merged in Add llhttp-ffi gem #1030.

Stub surface

Intentionally minimal — limited to what gems/http/.../sig/http.rbs references (LLHttp::Delegate, LLHttp::Parser, plus the parser methods Response::Parser calls). Not an attempt to type the whole gem.

Test plan

  • bin/test gems/llhttp/0.6 passes (rbs validate, steep check, untyped-call check).

Copilot AI review requested due to automatic review settings April 19, 2026 23:00
@github-actions
Copy link
Copy Markdown

@hakanensari Thanks for your contribution!

Please follow the instructions below for each change.
See also: https://github.com/ruby/gem_rbs_collection/blob/main/docs/CONTRIBUTING.md

Available commands

You can use the following commands by commenting on this PR.

  • /merge: Merge this PR if CI passes

llhttp

This RBS files are newly added.

You can merge this PR immediately if the CI passes.
Just comment /merge to merge this PR.

@hakanensari
Copy link
Copy Markdown
Contributor Author

/merge

@github-actions github-actions Bot merged commit f4eaf20 into ruby:main Apr 19, 2026
8 checks passed
@hakanensari hakanensari deleted the add-llhttp branch April 19, 2026 23:02
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds minimal RBS stubs for the llhttp gem (v0.6), intended to provide the LLHttp namespace surface needed by downstream signatures.

Changes:

  • Add gems/llhttp/0.6/llhttp.rbs with minimal definitions for LLHttp::Parser, LLHttp::Delegate, and LLHttp::Error.
  • Add a smoke test under gems/llhttp/0.6/_test/test.rb exercising the stubbed API.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
gems/llhttp/0.6/llhttp.rbs Introduces minimal LLHttp RBS surface (Parser, Delegate, Error).
gems/llhttp/0.6/_test/test.rb Adds a basic runtime usage test to validate the exposed surface.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +1 to +3
module LLHttp
class Error < StandardError
end
Copy link

Copilot AI Apr 19, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR description references gems/http/.../sig/http.rbs (and http 6.x) as the consumer of these stubs, but in this repo gems/http currently only contains 5.1/http.rbs and there are no LLHttp references under gems/http. Consider updating the PR description to clarify that this stub is intended to satisfy the upstream http gem 6.x bundled signatures (not present in this repo), or add/update the corresponding gems/http entry if that was the intent.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants